/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spiele.RPS.xample.pokemon;

/**
 *
 * @author martin
 */
public class Effective {
  private final Double _effectiveness;
  private final String _message;
  
  private Effective(Double effect, String msg){
    _effectiveness=effect;
    _message=msg;
  }
  
  public Double power(){
    return _effectiveness;
  }
  
  @Override
  public String toString(){
    return _message;
  }
  
  public static final Effective notTo = new Effective(0.5, "Not to effective"),
                                very = new Effective(2.0,"its super effective"),
                                no = new Effective(0.0,"it has no effect"),
                                normal = new Effective(1.0,"effective");
}
